<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
<%@taglib prefix="h" uri="http://java.sun.com/jsf/html"%>
<%@ include file="/WEB-INF/jspf/jsDefault.jspf" %>
<f:view>
    <html>
        <head>
            <%@ include file="/WEB-INF/jspf/header.jspf" %>
        </head>
        <body>
            <%@ include file="/WEB-INF/jspf/controlloTutor.jspf" %>
            <div id="main">
                <header>
                    <div id="logo">
                        <%@ include file="/WEB-INF/jspf/logoContent.jspf" %>
                    </div>
                    <nav id="barraMenu">
                        <div id="menu_container">
                            <ul class="sf-menu" id="nav">
                                <h:form>
                                    <%@ include file="/WEB-INF/jspf/menu/tutor.jspf" %>
                                </h:form>
                            </ul>
                        </div>
                    </nav>
                </header>
                <div id="site_content">
                    <div id="sidebar_container">
                        <%@ include file="/WEB-INF/jspf/loggedForm.jspf" %>
                    </div>

                    <div class="content">
                        <div id="accordion" class="ui-accordion ui-widget ui-helper-reset" role="tablist">
                            <h3 class="ui-accordion-header ui-helper-reset ui-state-default ui-accordion-header-active ui-state-active ui-corner-top ui-accordion-icons" role="tab" id="ui-accordion-accordion-header-0" aria-controls="ui-accordion-accordion-panel-0" aria-selected="true" aria-expanded="true" tabindex="0">
                                Lista dei tuoi Corsi
                            </h3>
                            <div class="ui-accordion-content ui-widget-content" >
                                <h:form>
                                    <h:dataTable id="table" value= "#{CorsiBean.mieiCorsi}" var="corsi" columnClasses="column, column, column" headerClass="header" rowClasses="row-even, row-odd" >
                                        <h:column>
                                            <f:facet name="header">
                                                <h:outputText value="Nome del corso" />
                                            </f:facet>
                                            <h:outputText value="#{corsi.corso}" />
                                        </h:column>
                                        <h:column>
                                            <f:facet name="header">
                                                <h:outputText value="Descrizione del corso" />
                                            </f:facet>
                                            <h:outputText value= "#{corsi.descrizione}" />
                                        </h:column>
                                        <h:column>
                                            <f:facet name="header">
                                                <h:outputText value="Sede" />
                                            </f:facet>
                                            <h:outputText value= "#{corsi.sede}" />
                                        </h:column>
                                    </h:dataTable>
                                    <div align="right">
                                        <h:commandButton value="Ritorna alla Home" type="submit" action="indexTutor.jsp" styleClass="ui-button ui-widget ui-state-default"/>
                                    </div>
                                </h:form>
                            </div>
                        </div>

                    </div>
                </div>
                <footer>
                    <p>Copyright &copy; FF-RL 2014</p>
                </footer>
            </div>
            <p>&nbsp;</p>
            <%@ include file="/WEB-INF/jspf/menu/scriptAnimazioneMenu.jspf" %>
            <%@ include file="/WEB-INF/jspf/about/contatti.jspf" %>
        </body>
    </html>
</f:view>
